from stack.service.stack import site
from sakucrm.config.department import DeaprtmentConfig
from sakucrm.models import UserInfo
from sakucrm.config.userinfo import UserInfoConfig
from sakucrm.models import Course
from sakucrm.models import Customer
from sakucrm.models import Department
from sakucrm.models import ConsultRecord
from sakucrm.models import ClassList
from sakucrm.models import Student
from sakucrm.models import CourseRecord
from sakucrm.models import StudyRecord
from sakucrm.config.customer import CustomerConfig
from sakucrm.config.customer import PublicCustomerConfig
from sakucrm.config.customer import PrivateCustomerConfig
from sakucrm.config.course import CourseConfig
from sakucrm.config.consult_record import ConsultRecordConfig
from sakucrm.config.consult_record import PriConsultRecordConfig
from sakucrm.config.student import StudentConfig
from sakucrm.config.class_list import ClassListConfig
from sakucrm.config.course_record import CourseRecordConfig
from sakucrm.config.study_record import StudyRecordConfig

site.register(Course,CourseConfig)
site.register(Department,DeaprtmentConfig)
site.register(UserInfo,UserInfoConfig)

site.register(Customer,CustomerConfig)
site.register(Customer,PublicCustomerConfig,'pub')
site.register(Customer,PrivateCustomerConfig,'pri')

site.register(ConsultRecord,ConsultRecordConfig)
site.register(ConsultRecord,PriConsultRecordConfig,'pri')

site.register(Student,StudentConfig)
site.register(ClassList,ClassListConfig)

site.register(CourseRecord,CourseRecordConfig)

site.register(StudyRecord,StudyRecordConfig)